package com.ccq.domain;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;



public class User implements Serializable {
	private static final long serialVersionUID = -1L;
	@NotNull(message="名字不能为空")
	private String name;
	@Max(value=120,message="最大不能超过120")
	private String age;
	private String sex;
	
	public User() {
		super();
	}
	public User(String name, String age, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
}
